package com.tz.online.entity;

public class OrderItem {
	private Long itemId; // 商品明细ID标识
	private Book book; // 明细商品
	private int count; // 购买数量
	private double allPrice; // 此明细的总价格
	private Order order; // 此明细所属的订单

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public double getAllPrice() {
		return allPrice;
	}

	public void setAllPrice(double allPrice) {
		this.allPrice = allPrice;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	//
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("OrderItem [itemId=");
		builder.append(itemId);
		builder.append(", book=");
		builder.append(book);
		builder.append(", count=");
		builder.append(count);
		builder.append(", allPrice=");
		builder.append(allPrice);
		builder.append("]");
		return builder.toString();
	}
}
